#Use Fox for GUI
require 'fox16'
include Fox

require 'Forms/LoginForm.rb'
require 'Forms/Canvas.rb'

@@sAuthString = nil

xaApp = FXApp.new
LoginForm.new(xaApp,'Twickr')
xaApp.create
xaApp.run

if(@@sAuthString == nil)
	exit	
end

xaApp.destroy
xaApp = FXApp.new
Canvas.new(xaApp,'Twickr')
xaApp.create
xaApp.run

xaApp.destroy
exit